package com.xsh.mapper;

import com.xsh.pojo.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;

public interface MenuMapper {

    LinkedHashSet<Menu> selectByConditions(@Param("username") String username, @Param("type") int type, @Param("parentId") Integer parentId);

    Set<String> selectPermissionByUsername(String username);

    List<Menu> selectAll(@Param("order") String order);

}
